home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Text / Other / TextPart.r next >
Encoding:
Text File  |  1994-04-21  |  2.7 KB  |  143 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                TextPart.r
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Anthone Burbidge
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13.  
  14. #define SystemSevenOrBetter 1            // we want the extended types
  15. #define    SystemSevenOrLater    1            // Types.r uses this variable
  16.  
  17. #ifndef __STDTYPES_R__
  18.     #include "StdTypes.r"
  19. #endif __STDTYPES_R__
  20.  
  21. #ifndef _STDDEFS_
  22.     #include "StdDefs.h"
  23. #endif _STDDEFS_
  24.  
  25. #ifndef _TEXTDEF_
  26.     #include "TextDef.h"
  27. #endif
  28.  
  29. include "Tools.Pict" not 'ckid';
  30.  
  31. //-------------------------------------------------------------------------------------
  32. // NMAP Resources
  33. //-------------------------------------------------------------------------------------
  34.  
  35. resource kNameMappings (FW_kKindCategoryMapId) {
  36.     kXMPKind,
  37.     {    /* array Types: 2 elements */
  38.         /* [1] */
  39.         kSampleTextensionKind,
  40.         kXMPIsAnISOStringList
  41.         {
  42.             {    /* array ClassIDs: 1 elements */
  43.                 /* [1] */
  44.                 kXMPCategoryText
  45.             }
  46.         },
  47.         /* [2] */
  48.         kSampleTextKind,
  49.         kXMPIsAnISOStringList
  50.         {
  51.             {    /* array ClassIDs: 1 elements */
  52.                 /* [1] */
  53.                 kXMPCategoryText
  54.             }
  55.         }
  56.     }
  57. };
  58.  
  59. resource kNameMappings (FW_kEditorKindMapId) {
  60.     kXMPEditorKinds,
  61.     {    /* array Types: 2 elements */
  62.         /* [1] */
  63.         kCTextPartID,
  64.         kXMPIsAnISOStringList
  65.         {
  66.             {    /* array ClassIDs: 1 elements */
  67.                 /* [1] */
  68.                 kSampleTextensionKind
  69.             }
  70.         },
  71.         /* [2] */
  72.         kCTextPartID,
  73.         kXMPIsAnISOStringList
  74.         {
  75.             {    /* array ClassIDs: 1 elements */
  76.                 /* [1] */
  77.                 kSampleTextKind
  78.             }
  79.         }
  80.     }
  81. };
  82.  
  83. resource kNameMappings (FW_kEditorUserStringMapId) {
  84.     kXMPEditorUserString,
  85.     {    /* array Types: 1 elements */
  86.         /* [1] */
  87.         kCTextPartID,
  88.         kXMPIsINTLText
  89.         {
  90.             kXMPRomanScript,
  91.             kXMPEnglishLang,
  92.             kSampleTextEditorUserString
  93.         }
  94.     }
  95. };
  96.  
  97. resource kNameMappings (FW_kKindUserStringMapId) {
  98.     kXMPKindUserString,
  99.     {    /* array Types: 1 elements */
  100.         /* [1] */
  101.         kSampleTextensionKind,
  102.         kXMPIsINTLText
  103.         {
  104.             kXMPRomanScript,
  105.             kXMPEnglishLang,
  106.             kSampleTextensionKindUserString
  107.         },
  108.         /* [2] */
  109.         kSampleTextKind,
  110.         kXMPIsINTLText
  111.         {
  112.             kXMPRomanScript,
  113.             kXMPEnglishLang,
  114.             kSampleTextKindUserString
  115.         }
  116.     }
  117. };
  118.  
  119. resource kNameMappings (FW_kCategoryUserStringMapId) {
  120.     kXMPCategoryUserString,
  121.     {    /* array Types: 1 elements */
  122.         /* [1] */
  123.         kXMPCategoryText,
  124.         kXMPIsINTLText
  125.         {
  126.             kXMPRomanScript,
  127.             kXMPEnglishLang,
  128.             kSampleTextCategoryUserString
  129.         }
  130.     }
  131. };
  132.  
  133. resource kNameMappings (FW_kOldMacOSTypeMapId) {
  134.     kXMPKindOldMacOSType,
  135.     {    /* array KeyList: 1 elements */
  136.         /* [1] */
  137.         kSampleTextKind,
  138.         kXMPIsMacOSType {
  139.             kSampleTextOSType
  140.         }
  141.     }
  142. };
  143.